-- GENERATED SPELL FOR [Undying Minion] --


function spell0_31152(pUnit, Event) --@Necrotic Strike,n/a--
pUnit:FullCastSpellOnTarget(60626,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31152', 15340, 1)
end

function Sorts_31152(pUnit, Event)
local choix_sorts_31152 = math.random(0, 0)
if choix_sorts_31152 == 0 then
pUnit:RegisterEvent('spell0_31152', 1, 1)
end
end

function mob31152_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31152', math.random(1500, 3000), 1)
end

function mob31152_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31152_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31152_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31152, 1, 'mob31152_Action')
RegisterUnitEvent(31152, 2, 'mob31152_Leave')
RegisterUnitEvent(31152, 3, 'mob31152_Kill')
RegisterUnitEvent(31152, 4, 'mob31152_Die')
